﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Castle.ActiveRecord;
using ZDSoft.UPMS.Model.SystemPart;

namespace ZDSoft.UPMS.Model.BusinessPart
{
    /// <summary>
    /// 成绩类
    /// </summary>
    /// Author：刘祖民
    /// CreateTime:2013-5-22

    [ActiveRecord]
    public class Score : ModelBase<Score>
    {
        /// <summary>
        /// 初试成绩
        /// </summary>
        [Property]
        public float InitialScore { get; set; }

        /// <summary>
        /// 最终成绩
        /// </summary>
        [Property]
        public float FinalScore { get; set; }

        /// <summary>
        /// 状态
        /// </summary>
        [Property]
        public bool IsActive { get; set; }

        /// <summary>
        /// 课程
        /// </summary>
        [BelongsTo("CourseID")]
        public Course Course { get; set; }

        /// <summary>
        /// 学生的得分
        /// </summary>
        [BelongsTo("UserID")]
        public User User { get; set; }

        /// <summary>
        /// 当前学期
        /// </summary>
        [BelongsTo("TermID")]
        public Term Term { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        [Property]
        public string Remark { get; set; }
    }
}
